package com.lsh.streamgd.utils;

public class Constants {

	public static final String PREFIX_ONTOLOGY = "/ontology/";
    public static final String PREFIX_RESOURCE = "/resource/";

	public static class AjaxCode{
		public static final String PARAMLOSS = "0"; //参数不全
		public static final String SUCCESS = "1";
		public static final String ERROR_UNKOWN = "2"; //未知错误
		public static final String ERROR_DBCONNECTION = "3"; //数据库连接错误
		public static final String FILE_NOTEXISTS = "4"; //ttl文件不存在
		public static final String ERROR_TASK = "5";
		public static final String NO_AUTH = "6";
        public static final String FAILED = "7";
		public static final String ERROR_WRONGCLASS = "8";

        public static final String DB_NOTSUPPORT = "10"; //不支持此数据库连接
	}

	public static class DBType {
		public static final int MYSQL = 1;
		public static final int POSTGRES = 2;
		public static final int ORACLE = 3;
	}

	public static class DBConnectType{
		public static final int SERVICENAME = 0;
		public static final int SID = 1;
		public static final int TNSNAME = 2; //暂不支持
	}

}
